package com.hfut.eeg.dto;

import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 梁琦
 * @program: eeg
 * @Package com.hfut.eeg.dto
 * @Description: TODO
 * @date 2019-12-21 10:42
 */
public class EEGReq {
    @NotBlank(message = "patientId不为空")
    @NotNull(message = "patientId不为null")
    String patientId;

    @Min(value = 0,message = "必须为数值，且不为负")
    Integer num;
    @Min(value = 0,message = "必须为数值，且不为负")
    Integer order;

    public EEGReq(String patientId, Integer num, Integer order) {
        this.patientId = patientId;
        this.num = num;
        this.order = order;
    }

    public String getPatientId() {
        return patientId;
    }

    public Integer getNum() {
        return num;
    }

    public Integer getOrder() {
        return order;
    }
}
